import { defineStore } from 'pinia';
import { SettingStore } from '@/types/app';

export const useSettingStore = defineStore('setting', {
  state: (): SettingStore => ({
    asideCollapse: false,
  }),
  getters: {
    isAsideCollapsed: (state) => state.asideCollapse,
  },
  actions: {
    setAsideCollapse(value: boolean) {
      this.asideCollapse = value;
    },
  },
});
